package xjtu.zd.server;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import xjtu.zd.server.book.detail.DetailAPI;

@SpringBootApplication //说明本类是springboot应用的启动类和配置类
@MapperScan({"xjtu.zd.server.*.*.dao"}) 
public class App {

    public static void main(String[] args) {

        SpringApplication.run(App.class, args);
        /*

        //获得spring容器对象，内部是个集合
        ApplicationContext ctx = SpringApplication.run(App.class, args);

        //从容器中获得指定类型的对象
        DetailAPI api = ctx.getBean(DetailAPI.class);

        System.out.println(api);

        System.out.println(api.test());

         */

    }

}
